package mq

import (
	"crypto/md5"
	"encoding/hex"
	"strconv"
)

func getSign(appSecret string, t int64) string {
	return md(appSecret + strconv.Itoa(int(t)))
}

func md(s string) string {
	h := md5.New()
	h.Write([]byte(s))
	return hex.EncodeToString(h.Sum(nil))
}
